home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3p / pthread_cancel.z / pthread_cancel
Encoding:
Text File  |  1998-10-20  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. pppptttthhhhrrrreeeeaaaadddd____ccccaaaannnncccceeeellll((((3333PPPP))))                                          pppptttthhhhrrrreeeeaaaadddd____ccccaaaannnncccceeeellll((((3333PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pthread_cancel - request cancellation of a thread
  10.  
  11. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<pppptttthhhhrrrreeeeaaaadddd....hhhh>>>>
  13.  
  14.      iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____ccccaaaannnncccceeeellll((((pppptttthhhhrrrreeeeaaaadddd____tttt tttthhhhrrrreeeeaaaadddd))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The _p_t_h_r_e_a_d__c_a_n_c_e_l() function requests that the thread identified by
  18.      _t_h_r_e_a_d be cancelled.  Cancellation state [see _p_t_h_r_e_a_d__s_e_t_c_a_n_c_e_l_s_t_a_t_e()]
  19.      and type [see _p_t_h_r_e_a_d__s_e_t_c_a_n_c_e_l_t_y_p_e()] determine whether the request is
  20.      acted upon immediately or at some time in the future; _p_t_h_r_e_a_d__c_a_n_c_e_l()
  21.      does not wait, it merely issues the request.  When _t_h_r_e_a_d does act on the
  22.      request, it will terminate as if it had called _p_t_h_r_e_a_d__e_x_i_t() with a
  23.      return status of PPPPTTTTHHHHRRRREEEEAAAADDDD____CCCCAAAANNNNCCCCEEEELLLLEEEEDDDD.
  24.  
  25. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  26.      On success _p_t_h_r_e_a_d__c_a_n_c_e_l() returns zero; otherwise an error number is
  27.      returned:
  28.  
  29.      [[[[EEEESSSSRRRRCCCCHHHH]]]]        The _t_h_r_e_a_d parameter does not identify a thread.
  30.  
  31. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  32.      pthread_setcancelstate(3P), pthread_setcanceltype(3P), pthread_exit(3P).
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.